package com.smooth.sys.site.modules.sys.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.smooth.common.site.dao.bean.AjDict;
import com.smooth.sys.site.modules.sys.service.GDictService;

@Controller
@RequestMapping(value = "${adminPath}/sys/ajax/dict")
public class SDictController {
	@Autowired
	GDictService gdictService;
	@ResponseBody
	@RequestMapping(value = "getDictData")
	public List<AjDict> getDictData(String type) {
		return gdictService.findTypeList(type);
	}
}
